#include<stdio.h>
int main()
{
    char full_name[50],file_name[50],file_type[50];
    int pos=-1,i,j,k;
    scanf("%s",full_name);

    for(i=0; full_name[i]!='\0'; i++)
        if(full_name[i]=='.')
            pos=i;

    if(pos==-1 || pos== i-1)
        printf("file_type is Null\n");
    else if(pos==0)
        printf("file_name is Null\n");
    else
    {
        for(j=0; j<pos; j++)
            file_name[j]= full_name[j];
        file_name[j]='\0';

        for(k=0,j++; full_name[j]!='\0'; k++,j++)
            file_type[k] = full_name[j];
        file_type[k]='\0';

        printf("file_name is %s\n",file_name);
        printf("file_type is %s\n",file_type);
    }

    return 0;
}